package com.xinchuang.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author baomidou
 * @since 2023-11-01
 */
@TableName("t_part")
@ApiModel(value = "Part对象", description = "")
public class Part implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("零件id")
    @TableId("part_id")
    private String partId;

    @ApiModelProperty("零件名称")
    private String partName;

    @ApiModelProperty("是否为模架")
    private Boolean isMoldFrame;

    @ApiModelProperty("密度")
    private String density;

    @ApiModelProperty("备用参数1")
    private String param1;

    @ApiModelProperty("备用参数2")
    private String param2;

    @ApiModelProperty("备用参数3")
    private String param3;

    @ApiModelProperty("备用参数4")
    private String param4;

    @ApiModelProperty("备用参数5")
    private String param5;

    @ApiModelProperty("备用参数6")
    private String param6;

    @ApiModelProperty("备用参数7")
    private String param7;

    @ApiModelProperty("备用参数8")
    private String param8;

    @ApiModelProperty("备用参数9")
    private String param9;

    @ApiModelProperty("单价")
    private String price;

    @ApiModelProperty("是否必选")
    private Boolean isRequired;

    @ApiModelProperty("是否主材")
    private Boolean isMainMaterial;

    @ApiModelProperty("是否标准件")
    private Boolean isStandardCom;

    @ApiModelProperty("创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public String getPartId() {
        return partId;
    }

    public void setPartId(String partId) {
        this.partId = partId;
    }

    public String getPartName() {
        return partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public Boolean getIsMoldFrame() {
        return isMoldFrame;
    }

    public void setIsMoldFrame(Boolean isMoldFrame) {
        this.isMoldFrame = isMoldFrame;
    }

    public String getDensity() {
        return density;
    }

    public void setDensity(String density) {
        this.density = density;
    }

    public String getParam1() {
        return param1;
    }

    public void setParam1(String param1) {
        this.param1 = param1;
    }

    public String getParam2() {
        return param2;
    }

    public void setParam2(String param2) {
        this.param2 = param2;
    }

    public String getParam3() {
        return param3;
    }

    public void setParam3(String param3) {
        this.param3 = param3;
    }

    public String getParam4() {
        return param4;
    }

    public void setParam4(String param4) {
        this.param4 = param4;
    }

    public String getParam5() {
        return param5;
    }

    public void setParam5(String param5) {
        this.param5 = param5;
    }

    public String getParam6() {
        return param6;
    }

    public void setParam6(String param6) {
        this.param6 = param6;
    }

    public String getParam7() {
        return param7;
    }

    public void setParam7(String param7) {
        this.param7 = param7;
    }

    public String getParam8() {
        return param8;
    }

    public void setParam8(String param8) {
        this.param8 = param8;
    }

    public String getParam9() {
        return param9;
    }

    public void setParam9(String param9) {
        this.param9 = param9;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Boolean getIsRequired() {
        return isRequired;
    }

    public void setIsRequired(Boolean isRequired) {
        this.isRequired = isRequired;
    }

    public Boolean getIsMainMaterial() {
        return isMainMaterial;
    }

    public void setIsMainMaterial(Boolean isMainMaterial) {
        this.isMainMaterial = isMainMaterial;
    }

    public Boolean getIsStandardCom() {
        return isStandardCom;
    }

    public void setIsStandardCom(Boolean isStandardCom) {
        this.isStandardCom = isStandardCom;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Part{" +
            "partId = " + partId +
            ", partName = " + partName +
            ", isMoldFrame = " + isMoldFrame +
            ", density = " + density +
            ", param1 = " + param1 +
            ", param2 = " + param2 +
            ", param3 = " + param3 +
            ", param4 = " + param4 +
            ", param5 = " + param5 +
            ", param6 = " + param6 +
            ", param7 = " + param7 +
            ", param8 = " + param8 +
            ", param9 = " + param9 +
            ", price = " + price +
            ", isRequired = " + isRequired +
            ", isMainMaterial = " + isMainMaterial +
            ", isStandardCom = " + isStandardCom +
            ", createTime = " + createTime +
        "}";
    }
}
